//
//  MYXLuckyCategoryCell.m
//  meiyinxiang
//
//  Created by apple on 2017/11/2.
//  Copyright © 2017年 hbjApple. All rights reserved.
//

#import "MYXLuckyCategoryCell.h"
@interface MYXLuckyCategoryCell()
@property (weak, nonatomic) IBOutlet UIButton *selectBtn;
@property (weak, nonatomic) IBOutlet UILabel *titleLable;

@end

@implementation MYXLuckyCategoryCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
+ (MYXLuckyCategoryCell *)loadNibWithMYXLuckyCell{
    UINib *nib = [UINib nibWithNibName:@"MYXLuckyCategoryCell" bundle:[NSBundle mainBundle]];
    return [[nib instantiateWithOwner:nil options:nil] lastObject];

}
- (void)setModel:(ComposeCateModel *)model{
    self.selectBtn.selected = model.selected;
    self.titleLable.text = model.cateString;
}
@end
